using System;
using UnityEngine;
using UnityEngine.UI;

public class UITimer : MonoBehaviour
{
	public Text timeText;

	public void SetTime(int seconds)
	{
		TimeSpan timeSpan = new TimeSpan(0, 0, 0, seconds);
		timeText.text = $"{timeSpan.Minutes:00}:{timeSpan.Seconds:00}";
	}
}
